#include <iostream>
#include <vector>
#include <memory>

using namespace std;

class Widget
{};

void doSomething()
{
    typedef std::shared_ptr<Widget> SPW;
    vector<SPW> vwp;
    for (int i = 0; i < 10; ++i)
    {
        vwp.push_back(make_shared<Widget>());
        vwp.push_back(SPW(new Widget));
    }
}

int main(int argc, char *argv[])
{
    return 0;
}
